<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //paresInt 取整数，去掉小数点后面的；
        console.log(parseInt('3.17'));
        console.log(parseInt('3.94'));
        console.log(parseInt('120PX'));
        console.log(parseInt('sds120'));
        //praseFloat 跟上面类似，可以保留小数；

        //利用Number强制转换；
        console.log(Number('12'));

        //利用隐式运算 - *
        console.log('13' - '10');


    </script>
</head>

<body>

</body>

</html>